﻿using System;
using Elasticsearch.Synchronize.Domain.Aggregates.SynchronizeAggregate;
using MediatR;

namespace Elasticsearch.Synchronize.Domain.Events
{
    public class TraverseRuleDataDomainEvent : INotification
    {
        public TraverseRuleDataDomainEvent(SynchronizeRule synchronizeRule, DateTime createTime)
        {
            this.SynchronizeRule = synchronizeRule;
            this.CreateTime = createTime;
        }

        public SynchronizeRule SynchronizeRule { get; }

        public DateTime CreateTime { get; }
    }
}